/**
 * calculator
 *
 * @author : tzy
 * @Date : 2021-03-16
 * @Description:
 **/

package com.tang.calculator.symbols;

import com.tang.calculator.context.CalculateContext;
import org.springframework.stereotype.Component;

@Component
public class LeftBracket extends Bracket implements Function {
    @Override
    public int getPriority() {
        return 0;
    }

    @Override
    public void operate(CalculateContext context) {
        context.getOperatorStack().push(this);
    }

    @Override
    public void simpleOperate(CalculateContext context) {
    }

    @Override
    public String getName() {
        return "(";
    }

    /**
     * 校验
     * @param str
     * @return
     */
    @Override
    public boolean check(String str) {
        return false;
    }
}
